#pragma once
#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <QTextEdit>
#include <QLineEdit>

class QtWidgetsClass : public QWidget
{
  Q_OBJECT

public:
  QtWidgetsClass(QWidget* parent = nullptr);
  ~QtWidgetsClass();

public:
  void initUI();
  void initSlots();
  void setTranBtnStyle(QPushButton* button, QString normal, QString hover);

private slots:
  void onSelectClicked(bool clicked);

signals:
  void startConvert();

private:
  QVBoxLayout* m_vlayout;
  QHBoxLayout* m_hlayout;
  QPushButton* m_select;
  QTextEdit* m_txtedit;
  QLineEdit* m_srcimage;

  QString m_transQss;
};
